home *** CD-ROM | disk | FTP | other *** search
/ Macwelt 1 / Macwelt DVD 1.toast / Web-Publishing / HTML-Editoren / Alpha ƒ / Tcl / Modes / postscriptMode.tcl < prev    next >
Encoding:
Text File  |  2001-01-04  |  4.4 KB  |  88 lines

  1. #################################################################################
  2. # Postscript mode.
  3. # Only supports colouring at present.
  4. #
  5. #================================================================================
  6.  
  7. alpha::mode PS 0.2 source {*.ps *.PS *.eps *.epsf *.pdf *.PDF} {} {
  8. } help {
  9.     PS mode is useful for viewing the internal commands of both
  10.     PostScript (.ps) and Portable Document Format (.pdf) files.
  11.  
  12.     PS mode currently supports colouring of /commands and %comments.
  13.     This "PostScript Example.ps" link is a PostScript version of
  14.     the first four pages of the Getting Started With LaTeX manual.
  15. }
  16.  
  17. newPref v prefixString {% } PS
  18. set PSKeyWords {
  19. FontDirectory GlobalFontDirectory ISOLatin1Encoding
  20. StandardEncoding UserObjects VMerror abs add aload anchorsearch
  21. and arc arcn arct arcto array ashow astore atan awidthshow
  22. begin bind bitshift bytesavailable cachestatus ceiling charpath
  23. clear cleardictstack cleartomark clip clippath cliprestore
  24. clipsave closefile closepath colorimage composefont concat
  25. concatmatrix configurationerror copy copypage cos count
  26. countdictstack countexecstack counttomark cshow
  27. currentblackgeneration currentcacheparams currentcmykcolor
  28. currentcolor currentcolorrendering currentcolorscreen
  29. currentcolortransfer currentdash currentdevparams currentdict
  30. currentfile currentflat currentfont currentglobal currentgray
  31. currentgstate currenthalftone currentlinecap currentlinejoin
  32. currentlinewidth currentmatrix currentmiterlimit
  33. currentobjectformat currentoverprint currentpacking
  34. currentpagedevice currentpoint currentrgbcolor currentscreen
  35. currentsmoothness currentstrokeadjust currentsystemparams
  36. currenttransfer currentundercolorremoval currentuserparams
  37. curveto cuttenthsbcolor cvi cvlit cvn cvr cvrs cvs cvx def
  38. defaultmatrix definefont defineresource defineuserobject
  39. deletefile dict dictfull dictstack dictstackoverflow
  40. dictstackunderflow div dtransform dup echo end eoclip eofill eq
  41. erasepage error errordict exch exec execform execstack
  42. execstackoverflow executeonly executive exit exp false file
  43. filenameforall filesposition fill filter findcolorrendering
  44. findefont findencoding findresource flattenpath floor flush
  45. flushfile for forall gcheck ge get getinterval globaldict
  46. glyphshow grestore grestoreall gsave gt handleerror identmatrix
  47. idiv idtransform if ifelse image imagemask index ineofill
  48. infill initclip initgraphics initmatrix instroke interrupt
  49. inueofill inufill inustroke invalidaccess invalidexit
  50. invalidfileaccess invalidfont invalidrestore invertmatrix
  51. ioerror itransform known kshow languagelevel le length
  52. limitcheck lineto ln load log loop lt makefont makepattern
  53. matrix maxlength mod moveto mul ne neg newpath noaccess
  54. nocurrentpoint not null nulldevice or packedarray pathbbox
  55. pathforall pop print printobject product prompt pstack put
  56. putinterval quit rand rangecheck rcheck rcurveto read
  57. readhexstring readline readonly readstring realtime rectclip
  58. rectfill rectstroke renamefile repeat resetfile resourceforall
  59. resourcestatus restore reversepath revision rlineto rmoveto
  60. roll rootfont rotate round rrand run save scale scalefont
  61. search selectfont serialnumber setbbox setblackgeneration
  62. setcachedevice setcachedevice2 setcachelimit setcacheparams
  63. setcharwidth setcmykcolor setcolor setcolorrendering
  64. setcolorscreen setcolorspace setcolortransfer setdash
  65. setdevparams setfileposition setflat setfont setglobal setgray
  66. setgstate sethalftone sethsbcolor setjoin setlinecap
  67. setlinewidth setmatrix setmiterlimit setobjectformat
  68. setoverprint setpacking setpagedevice setpattern setrgbcolor
  69. setscreen setsmoothness setstrokeadjust setsystemparams
  70. settransfer setucacheparams setundercolorremoval setuserparams
  71. setvmthreshold shfill show showpage sin sqrt srand stack
  72. stackoverflow stackunderflow start startjob status statusdict
  73. stop stopped store string stringwidth stroke strokepath sub
  74. syntaxerror systemdict timeout token token transform translate
  75. true truncate type typecheck uappend ucache ucachestatus
  76. ueofill ufill undef undefined undefinedfilename
  77. undefinedresource undefinedresult undefinefont undefineresource
  78. undefineuserobject unmatchedmark unregistered upath userdict
  79. usertime ustroke ustrokepath version vmreclaim vmstatus wcheck
  80. where widthshow write writehexstring writeobject writestring
  81. xcheck xor xshow xyshow yshow
  82. }
  83. if {[info exists PSwords]} {set PSKeyWords [concat $PSKeyWords $PSwords]}
  84. regModeKeywords -e {%} -m {/}  -c red -k blue PS $PSKeyWords -i "\}" -i "\{" -i "\[" -i "\]" -I green
  85.  
  86.  
  87.